#include "processBar.h"
#include <unistd.h>

#define RE "|/-\\"

void processBar()
{
        int cout=0;
        char couts[102];
        int len=strlen(RE);
        memset(couts,'\0',sizeof(couts));
        while(cout<=100){
                printf("[%-100s][%d%%][%c]\r",couts,cout,RE[cout%len]);
                fflush(stdout);
                couts[cout++]=BODY;
                usleep(100000);
        }
        printf("\n");
}
